package edu.fim.core.service;

import edu.fim.core.exception.BmiOutOfRangeException;
import edu.fim.core.exception.ServiceException;
import edu.fim.core.util.BmiCategories;
import edu.fim.presentation.model.bean.Consumer;
import edu.fim.presentation.model.bean.Food;

public interface ConsumerService {

	void update(Consumer consumer) throws ServiceException;
	
	Consumer findByUserAndPassword(String user, String password) throws ServiceException;

	void setCaloriesThreshold(Consumer consumer, Double newThreshold) throws ServiceException;

	void increaseCalories(Consumer consumer, Food food) throws ServiceException;

	BmiCategories determineWeightSituation(Consumer consumer) throws BmiOutOfRangeException;

	void updatePreferences(Consumer consumer);
}